﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Xceed.Wpf.AvalonDock;
using Xceed.Wpf.AvalonDock.Layout;
using ZFSDomain.Common.UserControls.Chart;
using ZFSDomain.Common.UserControls.Common;

namespace ZFSDomain.Common.UserControls
{
    /// <summary>
    /// MainTabControl.xaml 的交互逻辑
    /// </summary>
    public partial class MainTabControl : UserControl
    {
        public static DockingManager DockingManager;
        public MainTabControl()
        {
            InitializeComponent();
            DockingManager = dockManager;
            var firstDocumentPane = DockingManager.Layout.Descendents().OfType<LayoutDocumentPane>().FirstOrDefault();
            LayoutDocument doc2 = new LayoutDocument
            {
                Title = "首页",
                Content = new HomeAbout(),
                IsActive = true
            };
            firstDocumentPane.Children.Add(doc2);

        }

        private void dockManager_ActiveContentChanged(object sender, EventArgs e)
        {

        }
    }
}
